<%- @page_title = _('Editing Group for %s', h(@teaching.title)) -%>
<h2><%= @page_title %></h2>
<%- form_for( :group, @group,
              :url => group_path(@project, @teaching, @group),
              :html => {:class => 'form-small',
                        :method => :put,
                        :onsubmit => "Field.disable('submit-form'); Element.hide('cancel-form');"}) do |f| -%>
  <div class="form"><!--O .form-->
    <label for="group_name"><%= _('Name') %>:</label>
    <%= f.text_field(:name, :class => 'textfield') %>
    <%= error_message_on(:group, :name) %>
  </div><!--C .form-->
  <div class="form"><!--O .form-->
    <%= submit_tag(_('Save Group'), :class => 'button', :id => 'submit-form') %>
    <%= link_to(_('&laquo; Back to group'), group_path(@project, @teaching, @group), :id => 'cancel-form') %>
  </div><!--C .form-->
<%- end -%>